package com.ruoyi.security.service.impl;

import com.ruoyi.security.domain.AfElevator;
import com.ruoyi.security.domain.vo.DeviceInfoVo;
import com.ruoyi.security.mapper.DeviceInfoMapper;
import com.ruoyi.security.service.IAfElevatorService;
import com.ruoyi.security.service.IDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceServiceImpl implements IDeviceService {

    @Autowired
    private DeviceInfoMapper deviceInfoMapper;

    @Override
    public List<DeviceInfoVo> selectElevators() {
      List<DeviceInfoVo> list =  deviceInfoMapper.selectElevatorDevice(new AfElevator());
        return list;
    }

    @Override
    public List<DeviceInfoVo> selectNyTrans() {
        return deviceInfoMapper.selectNyTransDevice();
    }
}
